import CommonApi from "../api/CommonApi";

export function useEnumList(type:string){
    const enumList = ref([])
    onMounted(async ()=>{
      enumList.value = ((await CommonApi.getEnumList({ type })).data)?.map((x:any)=>({value:x.code,label:x.desc}));
    })

    return enumList
}